import request from '@/utils/requset'

export const getArticles = params => request.get('/admin/interview/query', { params })

// 添加面经
export const addArticles = data => request.post('/admin/interview/create', data)

// 删除面经
export const getDelete = id => request.delete('/admin/interview/remove', {
  data: {
    id
  }
})

// 获取单个面经 query 查询参数
export const getArticlesDetail = id => request.get('/admin/interview/show', {
  params: {
    id
  }
})

// 修改单个面经 body 查询参数
export const updateArticle = data => request.put('/admin/interview/update', data)
